<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta content="black" name="apple-mobile-web-app-status-bar-style">
	<meta name="format-detection" content="telephone=no">
	<meta content="telephone=no" name="format-detection">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="<%=basePath%>resources/css/main.css" rel="stylesheet" type="text/css" />
	<title>报告列表</title>
</head>
<body>
	<div class="html huodong" id="J_html">
		<div class="list">
			<c:if test="${reportList == null || fn:length(reportList) == 0}">
			<p class="item-line">
			没有搜索到结果
			</p>
			</c:if>
			<c:if test="${reportList != null && fn:length(reportList) > 0}">
			<c:forEach var="report" items="${reportList}" varStatus="status">
			<div class="item">
				<p class="item-line"><span class="item-ado">报告名称:</span>
					<c:if test="${report.reportType == 1}">中医亚健康检测</c:if>
					<c:if test="${report.reportType == 2}">中医舌苔检测</c:if>
				</p>
				<p class="item-line"><span class="item-ado">报告编号：</span>${report.reportNo }</p>
				<p class="item-line"><span class="item-ado">检测地点：</span>杭州市萧山检测站</p>
				<p class="item-line"><span class="item-ado">报告时间：</span><fmt:formatDate value="${report.createTime}" pattern="yyyy-MM-dd  HH:mm"  />   </p>
				<a href="<%=basePath %>report/${report.id}" class="item-btn">查看详情</a>
			</div>
			</c:forEach>
			</c:if>
			
		</div>
	</div>
	<script language="javascript" type="text/javascript" src="<%=basePath%>resources/js/jquery-2.1.4.min.js"></script>
	<script language="javascript" type="text/javascript" src="<%=basePath%>resources/js/func.js"></script>
	<script type="text/javascript">
		$(function(){
			
		});
	</script>
</body>
</html>
